import request from '@/utils/request'

/**
 *  支持分页列表查询
 * @param data
 * @returns {*}
 */
export function listMiniWenzhang(data) {
    return request({
        url: '/miniWenzhang/list',
        method: 'post',
        data: data
    })
}

export function getMiniWenzhang(keyId) {
    return request({
        url: '/miniWenzhang/detail/' + keyId,
        method: 'get'
    })
}

export function addMiniWenzhang(data) {
    return request({
        url: '/miniWenzhang/add',
        method: 'post',
        data: data
    })
}

export function updateMiniWenzhang(data) {
    return request({
        url: '/miniWenzhang/update',
        method: 'put',
        data: data
    })
}

export function delMiniWenzhang(keyId) {
    return request({
        url: '/miniWenzhang/delete/' + keyId,
        method: 'delete'
    })
}

export function exportMiniWenzhang(data) {
    return request({
        url: '/miniWenzhang/post/export',
        method: 'get',
        params: data
    })
}
